package com.lin.eat.dao;

import com.lin.eat.entry.Goods;
import com.lin.eat.entry.GoodsComment;
import com.lin.eat.entry.GoodsDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface GoodsMapper {

    int addGoods(Goods goods);

    List<Goods> recommendGoods();

    List<Goods> hotGoodsRank();

    List<Goods> hotGoodsSwiper();

    List<Goods> hotGoodsDiscounts();

    List<Goods> selectAllGoods();

    GoodsDetail findGoodDetailByGid(@Param("g_id") String g_id);

    String findBidByGid(@Param("g_id") String g_id);

    List<Goods> getGoodsByKey(@Param("key") String key);
}
